import { json } from '../index'
/**
 * 判断数据是否都为空
 * @param { Any | arguments }
 * @return { Boolean }
 */
const empty = [undefined, null, false, 0, '0', '', '[]', '{}']
export function isEmpty(...args) {
	return args.every(item=>{
		if(typeof item === 'object' && item!==null){
			item = json(item) 
		}
		return empty.includes(item)
	})
}